package cn.iocoder.an.module.business.controller.admin.storeinitbackup.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 库存台账备份新增/修改 Request VO")
@Data
public class StoreInitBackupSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "13706")
    private Long id;

    @Schema(description = "客户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27843")
    @NotEmpty(message = "客户账号不能为空")
    private String customerAccount;

    @Schema(description = "客户", example = "李四")
    private String customerName;

    @Schema(description = "仓库地点")
    private String storeLocation;

    @Schema(description = "仓库名称", example = "李四")
    private String storeName;

    @Schema(description = "图号")
    private String drawingNumber;

    @Schema(description = "品名", example = "芋艿")
    private String productName;

    @Schema(description = "期初数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "期初数量不能为空")
    private Integer initAmount;

    @Schema(description = "当前库存", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "当前库存不能为空")
    private Integer currentAmount;

    @Schema(description = "备份日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "备份日期不能为空")
    private LocalDate backupDate;

}